#ifndef _STX_ETX_H_
#define _STX_ETX_H_

#ifdef _STX_ETX_C_
  #define _EXT_
#else
  #define _EXT_ extern
#endif

#define C_STXETX_STX 0x02
#define C_STXETX_ETX 0x03


_EXT_ void ConvertChar2HexAscii(unsigned char ucByte, unsigned char *pH, unsigned char *pL);
_EXT_ void ConvertHexAscii2Char(unsigned char ucHexAsciiH, unsigned char ucHexAsciiL, unsigned char *pC);
_EXT_ void STXETX_ConvertPacket2Command(T_STXETX_PACKET *pPacket, T_CMD *pBlock);
_EXT_ void STXETX_ConvertCommand2Packet(T_CMD *pCommand, T_STXETX_PACKET *pPacket);

#undef _EXT_
#endif
